package com.tiancheng.trade.payment.vo.admin;

import com.fasterxml.jackson.annotation.JsonProperty;
import lombok.Getter;
import lombok.Setter;

/**
 * 查询退款
 */
@Getter
@Setter
public class BasePageVO {
    /**
     * 当前页
     */
    Integer currentPage;

    /**
     * 页大小
     */
    Integer pageSize;

    public Integer getCurrentPage() {
        if (null == currentPage || currentPage < 0) {
            currentPage = 1;
        }
        return currentPage;
    }

    public Integer getPageSize() {
        if (null == pageSize || pageSize <= 0) {
            pageSize = 10;
        }
        return pageSize;
    }
}
